require 'mathn'
prime_arr=[]
n=0
while prime_arr.length!=10002 do 
	if n.prime? 
		prime_arr<<n
	end
	n+=1
end
puts prime_arr
puts prime_arr[prime_arr.length-1]